package com.nebula.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.nebula.common.ServerResponse;
import com.nebula.pojo.UrlShare;
import com.nebula.vo.UrlShareListVo;

public interface IFileAndFolderShareService {
	ServerResponse getShareURLAndKey(String valArr,String username,String title,String failtime,String type);
	
	ServerResponse getInitInfo(String surl);
	
	UrlShareListVo getUrlShareInfo(UrlShare urlShare);
	
	ServerResponse<String> cancelShare(String surl);
	
	ServerResponse<String> cancelShareByIdGroup(String groupId);
	
	ServerResponse<String> updateSaveTimes(String surl);
	
	ServerResponse<String> updateDownloads(String surl);
	
	ServerResponse<List<UrlShareListVo>> privateShareInfo(String username);
	
	ServerResponse<List<UrlShareListVo>> publicShareInfo(Integer pageNum,Integer pageSize,HttpServletRequest request);
	
	ServerResponse<List<UrlShareListVo>> searchPublicShareInfo(Integer pageNum,Integer pageSize
			,String queries,HttpServletRequest request);
}
